﻿using Md.Api.Model.Manage.SysDictData.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.SysDictData;
/// <summary>
/// 通过字典类型获取字典数据列表服务
/// </summary>
public class GetSysDictDataListByDictTypeService : ApiBase<RequestGetSysDictDataListByDictTypeModel>
{
    /// <summary>
    /// 系统字典数据仓储
    /// </summary>
    public SysDictDataRep sysDictDataRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = sysDictDataRep.GetSysDictDataListByDictType(Parameter.DictType);

        Result.Data = res;
    }
}